package com.gzhryc.common.data.dto.echars;

import com.gzhryc.common.StringTools;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ChinaProvince {

    static Map<Long,String> data = new HashMap<>();

    static {
        data.put(540000L,"西藏");
        data.put(630000L,"青海");
        data.put(640000L,"宁夏");
        data.put(460000L,"海南");
        data.put(620000L,"甘肃");
        data.put(520000L,"贵州");
        data.put(650000L,"新疆");
        data.put(530000L,"云南");
        data.put(500000L,"重庆");
        data.put(220000L,"吉林");
        data.put(140000L,"山西");
        data.put(120000L,"天津");
        data.put(360000L,"江西");
        data.put(450000L,"广西");
        data.put(610000L,"陕西");
        data.put(230000L,"黑龙江");
        data.put(150000L,"内蒙古");
        data.put(340000L,"安徽");
        data.put(110000L,"北京");
        data.put(350000L,"福建");
        data.put(310000L,"上海");
        data.put(420000L,"湖北");
        data.put(430000L,"湖南");
        data.put(510000L,"四川");
        data.put(210000L,"辽宁");
        data.put(130000L,"河北");
        data.put(410000L,"河南");
        data.put(330000L,"浙江");
        data.put(370000L,"山东");
        data.put(320000L,"江苏");
        data.put(440000L,"广东");
        data.put(710000L,"台湾");
        data.put(810000L,"香港");
        data.put(820000L,"澳门");
    }

    public static String getName(Long key){
        if(key != null){
            return data.get(key);
        }
        return null;
    }

    public static List<Long> getKeys(){
        return new ArrayList<>(data.keySet());
    }
}
